package com.solace.selenium.config;

import com.solace.selenium.service.WebDriverService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ApplicationRunnerImpl implements ApplicationRunner {
    @Autowired
    private WebDriverService webDriverService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("write LocalStorage...");
        webDriverService.addLocalStorage();
    }
}